home *** CD-ROM | disk | FTP | other *** search
- Path: news.cc.utah.edu!news
- From: "Marc E. Christensen" <marc@ssv1.union.utah.edu>
- Newsgroups: comp.lang.c++
- Subject: How do I create xbitmaps with greater colordepth than mono??
- Date: Mon, 08 Apr 1996 21:43:19 -0600
- Organization: University of Utah Computer Center
- Message-ID: <3169DCD7.3B36BBF2@ssv1.union.utah.edu>
- NNTP-Posting-Host: ssv1.union.utah.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 3.0b2 (X11; I; Linux 1.3.80 i486)
-
- I've been searching all day for information to create xbitmaps with more than
- one colordepth (mono). New window manages (e.g. fvwm) use xbitmaps which are
- 8bpp (possibly more but I don't know). I have been unsuccessful in finding any
- incormation on the formats for these graphics. Xbitmaps are c code - right?
-
- example of a mono xbm:
-
- define directory_width 20
- #define directory_height 23
- static char directory_bits[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x04, 0x02, 0x00,
- 0x02, 0x04, 0x00, 0x01, 0xf8, 0x01, 0x01, 0x00, 0x02, 0x01, 0x00, 0x04,
- 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d, 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d,
- 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d, 0x01, 0x00, 0x0e, 0x01, 0x00, 0x0d,
- 0x01, 0x00, 0x0e, 0x55, 0x55, 0x0d, 0xaa, 0xaa, 0x0e, 0xfc, 0xff, 0x07,
- 0xf8, 0xff, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
-
-
- Thaks,
- --
- Marc Christensen
- SysOp CDSS University of Utah
- http://ssv1.union.utah.edu
-